Skip to main content
Version: 5.x.x

EmitParamsType


import { EmitParamsType } from "@hyper-fetch/sockets"

Description

Defined in emitter/emitter.types.ts:35

Preview

type EmitParamsType<Params,HasData> = HasData extends false ? Params extends NegativeTypes ? { params?: never } : { params: Params } : { params?: never };

Structure

HasData extends false ? (Params extends NegativeTypes ? {
params: never;
} : {
params: Params;
}) : {
params: never;
}